A Shape Neutral Analysis for Graph-based Data-structures
نویسندگان
چکیده
Malformed data-structures can lead to runtime errors such as arbitrary memory access or corruption. Low level languages make it easy to have bugs which can lead to malformed data structures as they allow direct pointer manipulation – making reasoning over data-structure properties challenging. In this paper we present a constraint-based program analysis that checks data-structure integrity, w.r.t. given target data-structure properties, suitable for detecting data-structure bugs in low level code. A key property of our analysis is that it is shape neutral, i.e. the analysis does not check for properties relating to a given data-structure graph shape, such as doubly-linked-lists versus trees. As a result, the analysis can be applied to a wide range of datastructure manipulating programs, including those that use lists, trees, DAGs, etc., all of which are specific kinds of graph data-structures. Furthermore, the analysis is powerful enough to detect certain classes of critical memory errors that can lead to data corruption or information leaks. Our analysis is modular and can be used to analyze code in libraries and components without requiring whole programs. Experimental results show that our approach works well in practice.
منابع مشابه
A Shape System and Loop Invariant Inference
Pointer programs remain a major challenge for program analysis and verification. Shape analysis can discover the shape invariants of data structures in the heap and detect errors about manipulating pointers in a program. This paper presents a shape analysis for linked list programs based on a new shape graph representation. Our shape graphs could describe unbounded data structures without loss ...
متن کاملISOGEOMETRIC STRUCTURAL SHAPE OPTIMIZATION USING PARTICLE SWARM ALGORITHM
One primary problem in shape optimization of structures is making a robust link between design model (geometric description) and analysis model. This paper investigates the potential of Isogeometric Analysis (IGA) for solving this problem. The generic framework of shape optimization of structures is presented based on Isogeometric analysis. By discretization of domain via NURBS functions, the a...
متن کاملTHIN WALLED STEEL SECTIONS’ FREE SHAPE OPTIMIZATION USING CHARGED SYSTEM SEARCH ALGORITHM
Graph theory based methods are powerful means for representing structural systems so that their geometry and topology can be understood clearly. The combination of graph theory based methods and some metaheuristics can offer effective solutions for complex engineering optimization problems. This paper presents a Charged System Search (CSS) algorithm for the free shape optimizations of thin-wall...
متن کاملGeneric properties of combinatory maps: neutral networks of RNA secondary structures.
Random graph theory is used to model and analyse the relationships between sequences and secondary structures of RNA molecules, which are understood as mappings from sequence space into shape space. These maps are non-invertible since there are always many orders of magnitude more sequences than structures. Sequences folding into identical structures form neutral networks. A neutral network is ...
متن کاملSecondary Structure Effects on the Acidity of Histidine and Lysine-Based Peptides Model; A Theoretical Study
In this study, the effect of the secondary structure of the protein on the acid strength of three structures of random (R), alpha helix (α) and beta sheet (b) were investigated theoretically. These structures are related to the cationic amino acids of histidine and lysine in the polypeptide chain of eight-glycine residue. Computational methods at the HF, B3LYP, X3LYP and M05-2X levels in t...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2015